package com.mrdoob.tools.threedoob.utils {	import flash.display.BitmapData;	import flash.filters.BlurFilter;	import flash.geom.Point;			/**	 * @author mrdoob	 */	public class DofTexture 	{		public var images : Array;		public var levels : int;		public function DofTexture(texture : BitmapData, levels : int = 50, quality : int = 4)		{			this.levels = levels;						var point : Point =  new Point();						images = new Array();						for (var i : int = 0; i < levels; i++)			{				images[i] = new BitmapData(texture.width, texture.height, true, 0x00000000);				images[i].copyPixels(texture, texture.rect, point);				images[i].applyFilter(images[i], images[i].rect, point, new BlurFilter(i, i, quality));			}					}				public function dispose() : void		{			for (var i : int = 0; i < images.length; i++)				BitmapData(images[i]).dispose();							images = null;		}	}}